Updated fixup_mkt_index to output on stdout