Removed decorator from do_scan method