master_script cleaned.