Can we combine this for with the for below? We probably don't need the goroutine.