Cleanup up engine.lua