InputFormat working.
Merged version.