Use a result map which acts like a set to have unique flat results