Add support to send output to collect endpoints

Sure, that should be equally easy. I will change the diff to do that.