Execution of commands upon event triggers