Add value folding to diagram.