Added sharing functions.