Allow specifying global event handlers.