Added support for patterns with +