Added exponential and modulus functionality