Added shortst path logging