Started to add checks to see if scan is running