Implemented the base repository.