Patch code from Gym to Gschool