Horrible clock management here