Shouldn't need to modify the script. You should be able to directly control it via the Control Panel.