Share -- basic setup for share function

To be reviewed in morning