Agriculture allows a much greater density of population than can be supported by hunting and gathering and allows for the accumulation of excess product to keep for winter use or to sell for profit. The ability of farmers to feed large numbers of people whose activities have nothing to do with material production was the crucial factor in the rise of surplus, specialization, advanced technology, hierarchical social structures, inequality, and standing armies. Agrarian societies thus support the emergence of a more complex social structure.