Parallelised the rule matching in the stream app.