Improved sharing API.