Implemented viewport bounding