Adding object detection sm