Added interval timing to tick handler.