Added controls to test an algorithm