Replaced some algorithm engine stubs and added some algorithm functionality