Added CopyNShare code