Minimizing greenhouse gases and toxic emissions