Added allowBlank option