Output support

Now supports output from “result” fields