Made use of two different bounding rect versions