Only deepcopy when returning final result.