Set memory options.