Preparing the pub/sub structure