Preparing memory copying