Added topic logging.