Added extension methods for purging