Created a anonymous function.