Added functionality to publish message to timeline