Added option to disable sharing