Make gradtime generic