Use moves to avoid copies.