Added name field to Pattern.