Moved AMD support to non named functions