- Updated with task B core.
- Added exceptions handling.