Correct the Exponential mode
Improve error handling