Readjusting the memory layout