Optimized the code which was checking for additions to the file