Removed wait msg and the a type error in scan debug output.