Modified the findTrack function to be more useful. It has to be checked.