Better memory spec generation.