Added check to see if scanner is running