The discovery of vitamins and their role in nutrition, in the first two decades of the 20th century, led to vitamin supplements, which in the 1920s allowed some livestock to be raised indoors, reducing their exposure to adverse natural elements.