Change memory calculation to choose a generous amount of memory.