Hook up toggle for scanning