Modify loadscript workflow and structure.