Scanning implemented and working