Adds cookie reader, fixes typos in memoize.