Added loads of event hooks.