Partially reverted refactoring because channels add more overhad then speed gained from using goroutines