Collecting statistics in TSP.