Add support for custom events handler. Closes #55