Updated code for changes in libraries.
Updated code after testing dropbox connector plugin.