Add record command.  Plug stderr memory leak.