Removed unused imports and dead variables
Corrected resultsMap
Removed unused imports