Despite the long Dutch presence in Taiwan (1624–1662) and the active trade between Batavia and China in the eighteenth century, the Dutch tradition of academic Sinology got underway only in the last quarter of the nineteenth century, when the training of future officers for Chinese affairs in the Dutch East Indies was moved to Leiden. This training (often including an extended period of stay in China) remained the main task of Chinese teaching at Leiden until 1949, when Indonesia achieved independence. The earliest phase of Chinese teaching at Leiden has received an encyclopedic coverage in the work of Koos Kuiper. Scholars of the second generation who have received monographic treatment include J.J.M. de Groot and Henri Borel. The best-known Dutch Sinologist of the middle of the twentieth century was Robert Hans van Gulik who was not only a successful diplomat and highly original scholar, but also established an international reputation with his Judge Dee crime novels. His work has given rise to considerable scholarship in English and Chinese.