This function should be const.