Change memory settings