Added ability to use regular functions as event handlers.