Response to magnesium ion