Wrote first code for sink for txt files. Untested so far.