Add logic to delete older entries