Adding virtual memory support