[UPDATE] changed AMD definitions to be more flexible