Add outputstream helper