Added the scan recognition