Add the ability to specify a different output format. Fixes #4.