Added startup event
Added lifecycle event strategy, minor refactoring.