Cycling of nutrients and energy