Added a limit on how old data is saved