Merge codes from MyTracks