Add support for minLength option