Add some more useful lifecycle hooks