Update dg_scripts.c