Added check for extra exponents.