Removed the two useless functions in memoize