Completed initial file monitoring code.