Added minLength option