Generalize 'gym' to include 'animate' also.