Added BoundingBox logic