Add purging and maximum cost behavior.