Added AMD compatibility.