Modify how script is added