Changed the function to the variable in the anonymous function