Make methods const where possible.