Added other event method.

Now all events are accessible, use the onOtherEvent method to create
custom functions depending on the event passed.