Update engine.cc