Added update and render frame code to scene.