Sure, I wasn't aware of that.  I wish I could just call into the puppet code, but it's not really written that way so I'll just copy/paste their implementation.