DO NOT MERGE - Initial script generation code for testing