Changed the code os that there are no unused variables when getting the exponential