             let data = JSON(command.arguments[0]);
             let autoPlay = data["autoPlay"].bool ?? false
             
-            doAddItem(data);
+            self.doAddItem(data);
 
             if autoPlay {
-                jukebox.play();
+                self.jukebox.play();
             }
 
             pluginResult = CDVPluginResult(

            )

            // Stop and deinitialize playlist.
            jukebox.stop();
            jukebox.removeAllItems();
            jukebox = nil

            jukebox = Jukebox(delegate: self, items: [])!

            pluginResult = CDVPluginResult(
                status: CDVCommandStatus_OK


            for track in tracks {
                let data = JSON(track)
                self.doAddItem(data)
            }

            pluginResult = CDVPluginResult(
