Implemented viewport bounding.