In prehistoric times, advice and knowledge was passed from generation to generation in an oral tradition. The development of writing enabled knowledge to be stored and communicated across generations with much greater fidelity. Combined with the development of agriculture, which allowed for a surplus of food, it became possible for early civilizations to develop and more time to be devoted to tasks other than survival, such as the search for knowledge for knowledge's sake.