Adjusted code to be compatible with the new plug.dj api