Updated Ogre Code