Should be in a begin ... end block to get value of memoization.