Init method for base service.