Báez was toppled in 1874, returned, and was toppled for good in 1878. A new generation was thence in charge, with the passing of Santana (he died in 1864) and Báez from the scene. Relative peace came to the country in the 1880s, which saw the coming to power of General Ulises Heureaux. "Lilís", as the new president was nicknamed, enjoyed a period of popularity. He was, however, "a consummate dissembler", who put the nation deep into debt while using much of the proceeds for his personal use and to maintain his police state. Heureaux became rampantly despotic and unpopular. In 1899, he was assassinated. However, the relative calm over which he presided allowed improvement in the Dominican economy. The sugar industry was modernized, and the country attracted foreign workers and immigrants.