Proper check if all the revision data is fetched
Flushing output file after an each row. For testing with csv format