     commandCenter.nextTrackCommand.addTarget(self, action:#selector(thePlayer.nowPlaying?.nextSong))
     commandCenter.previousTrackCommand.addTarget(self, action:#selector(thePlayer.nowPlaying?.previousSong))
     commandCenter.pauseCommand.addTarget(self, action:#selector(thePlayer.nowPlaying?.pauseSong))
+    if #available(iOS 9.1, *) {
+        commandCenter.changePlaybackPositionCommand.addTarget(self, action:#selector(thePlayer.nowPlaying?.onChangePlaybackPositionCommand))
+    } else {
+        // Fallback on earlier versions
+    }
     commandCenter.playCommand.addTarget(self, action:#selector(thePlayer.nowPlaying?.pauseSong))
 //    fetchTrack()
   }

    }
}

extension TrackViewController {
    func addToPlaylist () {
        let trackOptionsVC = TrackOptionsViewController()

        tabBarController?.present(trackOptionsNav, animated: true, completion: nil)
    }
    
    func onChangePlaybackPositionCommand (_ event: MPChangePlaybackPositionCommandEvent){
        thePlayer.spotifyPlayer?.seek(to: event.positionTime, callback: { (error) in
            if (error != nil) {
            }
        })
    }
    
    func nextSong(){
        print("next")
