Added code for grep files.