Handle exponents correctly.