Service implemented as a module
Implemented error handling