Added a cleanup function to remove old notifications