When this was originally written, I don't think that method was available.  Will update in my next pull request.