Use a helper method for recording changes and rebuilding the playlist index