[minor] Adding names to anon functions