Make a function const that was not