Updates to several algorithms