Added base service to remove code duplication.