Added deleteOldEvents