Revise handling of memory mapping.