Added generic read_topic_state