Support opts.output and callback together. Fixes #16.
2.2.0