Adding all the proper sharing metadata.