Added logging to repository.