Add support for TAP (test anything protocol) output

Do we really have to specify an index? can't that be figured out by using a loop variable or something?