Enables sharing. Also does some cleanup.