Use an anonymous function here instead of a named one.