Cleaned up sharing api.