I wasn't sure the best way to bind $ for this case.  It isn't in the same lexical scope as the others, hence the self. and assigning that above as well.