daneel had in several instances allied himself with humans , and seemed to function more smoothly and efficiently in their presence -- elijah bailey and , twenty thousand years later , hari seldon , as well as others .