Added getAlgo method