Removed version 1
Removed global variable if amd is available