Exhaust optimization