Implemented file and directory watchers