Edited some algs.