Also modified time_manager to pass time by value to time callbacks as it's a fairly small struct and it will probably be more robust.