Don't forget to check if the dictionary state is final.