Added controls to switch algorithms.