Add const qualifier to suitable variables.