Created a template for an event handler.