Sticking with fread, will implement the control loop
added a control loop, so interfacing will be done via a pipe.