Changed intermediate output to KeyValueTextInputFormat