Update patterns.php