Used bounding box function in simulator