Added OnApplicationPause.