Dir scanning functional. Added detect ratio for VT query