Algorithm sketch.