Update engine.lua