Add event handling structure.