If we default ```output``` to ```""``` and return it at the end, we can simplify the interface a little bit below.