Bounding Box Separated to Function