Added boundingbox function