Dump now takes a function it uses to output values.