loops timer until done