Tests pass, purge algorithms updated