Major rewrite of "freduce" command