Two-stage anaerobic digestion enables heavy metal removal.