F54: Add support for multiple event handlers.