Update to anonymous function