Use an anonymous function.