Updated function name for changes made in the controller