Rewrite virtual memory manipulations.