Added AMD support. Fixes #2