Hey, What's wrong with this code? Mediatrack *tr=CSurf_TrackFromID(trackIndex, false); if (!tr) { int totaltr = CSurf_NumTracks(false); if (trackIndex == totaltr+1) InsertTrackAtIndex(totaltr, false); } I am trying to insert a track at the end of the tracklist. But it basically does nothing ;-) Yves