The diversity of species and genes in ecological communities affects the functioning of these communities. These ecological effects of biodiversity in turn are affected by both climate change through enhanced greenhouse gases, aerosols and loss of land cover, and biological diversity, causing a rapid loss of biodiversity and extinctions of species and local populations. The current rate of extinction is sometimes considered a mass extinction, with current species extinction rates on the order of 100 to 1000 times as high as in the past. The two main areas where the effect of biodiversity on ecosystem function have been studied are the relationship between diversity and productivity, and the relationship between diversity and community stability. More biologically diverse communities appear to be more productive (in terms of biomass production) than are less diverse communities, and they appear to be more stable in the face of perturbations. Also animals that inhabit an area may alter the surviving conditions by factors assimilated by climate. Definitions In order to understand the effects that changes in biodiversity will have on ecosystem functioning, it is important to define some terms. Biodiversity is not easily defined, but may be thought of as the number and/or evenness of genes, species, and ecosystems in a region. This definition includes genetic diversity, or the diversity of genes within a species, species diversity, or the diversity of species within a habitat or region, and ecosystem diversity, or the diversity of habitats within a region. Two things commonly measured in relation to changes in diversity are productivity and stability. Productivity is a measure of ecosystem function. It is generally measured by taking the total aboveground biomass of all plants in an area. Many assume that it can be used as a general indicator of ecosystem function and that total resource use and other indicators of ecosystem function are correlated with productivity. Stability is much more difficult to define, but can be generally thought of in two ways. General stability of a population is a measure that assumes stability is higher if there is less of a chance of extinction. This kind of stability is generally measured by measuring the variability of aggregate community properties, like total biomass, over time. The other definition of stability is a measure of resilience and resistance, where an ecosystem that returns quickly to an equilibrium after a perturbation or resists invasion is thought of as more stable