Added case statement to the purging analysis script