Add possibilty to collect bad events into new file to stat_tool.