I think what might work is inlining a function declaration that uses return statements inside itself, and then making the script itself end with my_fn(input, custom) -- Scott