Added purge method.