Fixed a bug with how the algorithms were being wrapped