Support for the lifecycle methods.