Added tracking of onCreate, onRestart, onStart, and onResume