Some more algorithms