Add pattern matching in status