Implemented approach to insert file mark into files.