Use built-in copy overwrite for better compatibility.