Added activities life cycle.