Learned the hard way: don't call capture() twice