 Some scholars attribute the bulk of the parashah, to an insertion by the second Deuteronomistic historian (sometimes abbreviated Dtr 2) who wrote in the Babylonian captivity after 587 BCE.And then these scholars attribute the conclusion of the parashah, to a later Redactor (sometimes abbreviated R) who folded the Deuteronomic report into the context established at the end of the book of Numbers.For a color-coded display of verses according to this hypothesis, see at Wikiversity.