Added IQ handlers for purging.