Implemented Purge feature