Trying a new way to register event handlers.