Avoid saving the last data twice between script runs

- Added more info logs