Combine pre_script into script.