TrackProvider ported to swift