Newest file reading code (considerrollback)