Fix FileMonitor to enable execution at each iteration