Added a basic implementation of file monitoring.