Adjusted script example to match current code