Adding all BasisRetriever code