Refactored UseFileMonitor to not use queues.