Refactor, add interfaces to service. Solved errors.