First version of the file monitor.