Adds working dict lookup algorithm.