Generic File Monitoring Script