Updated FrequencyAnalysis, now returns a Map to the plugin