Add a define for the thread dictionary