Add methods to alter scan threads in scan_template.rb