Added code to exponential