Added the code for file collector