Added track selection by the first/last hit position