Add max_name_length and max_fname_length configuration