Changed amd implementation
Updated version