OK, but then I'll add some mutex to avoid the dictionary being returned while it's still being written. That happens in the topic callback thread.