Generalized the engine code, and worked on cryosleep