Added exponent handling.