Implement memory references.