Added names to anonymous functions for better stacktraces.