Added code for to call the method to generate DataFile and SearchFile