Added lifecycle logging