Add sharing functionality.