Adding purgeData()