More importantly, I don't see how this is better.  Can you explain the problem with the original impl?