The British had first acknowledged Tengku Abdul Rahman at the time of their first presence in Malacca. The situation however had changed. In 1818, Farquhar visited Tengku Hussein in the little island of Penyengat, off the coast of Bintan, the capital of the Riau Archipelago. There, new plans were drawn up, and in 1819 Raffles made a deal with Tengku Hussein. The agreement stated that the British would acknowledge Tengku Hussein as the legitimate ruler of Singapore if he allowed them to establish a trading post there. Furthermore, Tengku Hussein and the temenggung would receive a yearly stipend from the British. The treaty was ratified on 6 February 1819. With the Temenggung's help, Hussein left Penyengat, pretending that he was 'going fishing', and reached Singapore, where he was quickly installed as Sultan.