Add option to disable memoization and fix typos.