Increasing length of pattern match