Added ability to use goroutines.