Pass memo into deepcopy