Made more AMD friendly