Added logging of topic changes.