Adding new flagging algorithm to the pipeline