Used map reduce for flatfile reading