Add functionality for identifying and removing falsely identified track ends