User defined number of go routines