Started working on sharing function.