Add some const to the 'in' paramaters for these functions.