Add Time manager and main loop