Max added here, but there is no maxlength in the original code.