Constify a few functions.