What affects the cost of a generator?