Changes to engine.h