Distance and flag collection completed