Algorithms updated