onPause and onResume working. Created structure for the functions. initFunction already working with the main infantium reference.