Fixed div/0 error.
Changed to sync.WaitGroup
Changed to sync.WaitGroup