Implemented share functionality.