Named an anonymous function and added a comment