Added constructor in Engine.