Edited engine.rb