Implemented repositories and services.