Add functionality for multiple topic publishing in storyWords.