Adding speedup to pdict breaks the lookup