Added function to remove old sessions