Applying sharing rules