Move the data generation into the view controller.
Passes all relevant data into the PubNub channel.