Replaced create_function with a function closure.