Add flatfile implementation