Refactored and utilized Dropbox API