In a galvanic cell, anions: