Better memory control