Testing new algorithm.