Add some dependencies.
Refactor to merge logic layer and services.