Upon learning of these Johor political tensions, Raffles had the Temenggong smuggle Hussein Shah from Riau to Singapura. Raffles then made a deal with Hussein Shah. The British would recognize Hussein Shah as Sultan of Johor, and pay stipends to Hussein Shah and the Temenggong Abdul Rahman.