Add support for checking processes by pattern matching