Updated MAXLENGTHKEY