Some changes added to try to save data in a file