Working Scanning Code :)