And the algorithm goes...