Adapting to removing calculateProbabilities in algorithm