Add timer for TaskLoop
Fix visibility of taskLoop() and setTaskLoop()