Adding the input to the waitgroup a bit earlier to ensure smaller race risk