Use MEMORY var correctly