 He was also surveyor-general of the State.On the breaking out of the war he was commissioned as colonel of a regiment of Somerset militia by the Provincial Congress of New Jersey; but before the regiment could be gotten ready he was appointed by Congress to take command of two regiments in the continental service.March 1st 1776 he was commissioned by Congress to be a brigadier-general and was stationed at New York.