Refactored sharing.