Added a settimout function when the scan is a success, creates an scanning loop no matter what.