Minor changes for the other algorithms!