Implemented generation of the bounding box.