Implemented saving acc. recording data to file.