Rewrote it! Uses $return=blah and can handle implicit returns.