Bugfix for runloop, implemented a repeating timer.