Added variable for topic, rather than specify at publish time