Added and exponent command
Add failsafe statement at the end