a combination of miracle work , guesswork and knowledge of biology eventually yielded an environment more or less in equilibrium , even though the equilibrium was maintained at the expense of hard labor and excessive energy consumption .