Changing functions to const functions--Ryan