Updated 'the algorithm'