Adds goroutines to main method, attempting to limit scope of maps and collect garbage