Added Algo constructor