Added namespace support for event handlers.