Added function to dynamically change operation output based on prompt directory files. Improves program flexibility and control.