Working version of object detection module