Restructure scripts for CURL.