Changed getTraces to return LinkedHashSet so order is remembered