Ported BoundingBox, cleaned up import