* Write custom error class
* Make thread safe
* Add API for mobile apps.
