Changed variables back to ints, and changed the time quantum