Added min-length setting.