Farming in the rainforest can preserve biodiversity, ecological services