Register Events.