bugfix: t = MAXTIME didn't work as an exit, now uses "break"