Why the anonymous function wrapper?