Removed memoization. Didn't seem to help.