Added ability to overload event handling in subclasses.