Conditions improved in Tórshavn when the trade monopoly became a royal monopoly in 1709. The Danish royal trade monopoly was supplied with goods from Copenhagen three times a year. However, in 1709 Tórshavn was hit by a plague of smallpox, killing nearly the entire population. The town had by this time reached a population of 300 and 250 of the inhabitants died. Still, it was during the latter half of the 18th century that Tórshavn started to develop into a small town. This was while Niels Ryberg was in charge of the trade monopoly. From 1768 and during the next 20 years onwards Ryberg was allowed to carry on an entrepot trade which was mainly based on smuggling to England. Because of the French-British conflict there was room for this kind of operation. In Tórshavn his warehouses filled up with goods. Ryberg was the first person who thought of making a financial profit from fishing, which later became the most important economic factor to the islands. He experimented with salted cod and herring but at this point in time nothing much beyond this happened.