Removed unnecessary anonymous function.