r? @brson, I added some of my own comments here, the existing comment didn't quite make sense to me without some extra explanation.