Hooking up scripts to tasks