Get the latest completed scan
Add debugging