Make dowrap() a little clearer, including comments.