Add the sharing code.