Update pattern.php