Adding code for DepthSearch