Updated complete example script for the new scg script