Implement memory mapping.