Added onPause and onResume hooks; ready to integrate switches with interceptions