Initial working version of real-tme dict update. Hacky and needs cleanup.