Added the ability to manually select the algorithm.