Better logic to compare files
Better polling Stat