Added event triggers on file