Added goroutine to main loop