Viewport code added