Upon its formal establishment with the signing of a treaty on 6 February the same year, Raffles left the settlement, leaving Colonel William Farquhar as the first Resident of Singapore. By the end of May, Raffles returned, and while noting the rapid development of the city, realised the need for a formal urban plan to guide its otherwise disorganised physical expansion. He left the colony again, instructing Farquhar to designate residential, commercial, and governmental land uses for the colony.