Greedy stitch logging