This double copying surprised me, but I'm guessing there's a good reason for it.