Update sharing functions
Merge branch 'refactor-settings' into gh-pages