submitted his resignation in May 1859, and joined the customs service. Chinese customs Upon entering the customs service, Hart began drawing up a series of regulations for the operation of the customs house in Canton. For two years, from 1859 to 1861, Hart worked hard in Canton, but never fell ill in the hot and damp climate. In 1861, facing the threat of the Taiping Rebellion marching on Shanghai, Horatio Nelson Lay sought leave to return to Britain to nurse his injuries sustained during an anti-British riot in 1859. Lay claimed that so serious were his injuries that he was forced to return to England for two years to recover. In his place, two officiating Inspectors-General were appointed: George Henry Fitzroy, a former private secretary to Lord Elgin, and Hart. Whilst Fitzroy was content to stay in Shanghai, Hart went around China establishing new customs offices. With the recent ratification of the Treaty of Tientsin, a number of new ports were opened to foreign trade, and so new customs structures had to be put in place. In 1861, Hart recommended to the Zongli Yamen the purchase of the Osborn or "Vampire" Fleet. When the proposal was adopted, Lay, on leave in Britain, set out arranging the purchase of the ships and hiring of personnel. Inspector-General The good relations Hart established with the imperial authorities in Peking while deputising for Lay, and conflict between Lay and Prince Gong and the Zongli Yamen over the Osborn Fleet, led them to dismiss the difficult and haughty Lay upon his return from leave. Hart was appointed in his place in November 1863, with British approval. As Inspector-General of China's Imperial Maritime Custom Service (IMCS), Hart's main responsibilities included collecting custom duties for the Chinese government, as well as expanding the new system to more sea and river ports and some inland frontiers, standardising its operations, and insisting on high standards of efficiency and honesty. The top echelon of the service was recruited from all the nations trading with China. Hart's advice led to the improvement of China's port and navigation facilities. From the start, Hart was anxious to use such influence as he possessed in favour of other modernising steps. In October 1865 Hart submitted to Prince Gong a memorandum which caused some offence at the time. In it he advised that "[o]f all the countries in the world, none is weaker than China"