Configurable output fields

Fixes #1