Changed template algorithm to recursive-descent