- Add error module
- Sanity check
- Add transaction support
