Added publish/subscribe structure.