Added channel and go routine for collecting results