Tracking the application's lifecycle