@cvan: I guess it'd work, but... the python version is much easier to read and use, IMHO.