Implementation of the LifeCycle API.