Added data recording(.txt files)