Bug fix - was double counting iterations. also, allow variable number of
iterations per score trace.