Fix callback for Dropbox.
Simplify generation callback for Dropbox.