adding the updated / modified scanner script.