Added AMD code.