Added the --pattern option.