Using wait groups.