All scanning now works...

Scanning function works well.