Removed the unused scanner logic.