Added matchLength option