lz-string version with AMD Support