Adding support to AMD

As mentioned in issue #5