Base logic for data file is done along with iteration