Updated for arm64 compatibility.