Return Set of triples instead ot list. Modified report generation