Limit the number of go routines