Modified several QA_scripts