Simplify 'field'
Use local variables where appropriate
Add inotify-tools