AlgBase constructor reordered.