Moved time_manager and scheduler out of heap and onto the object