Changed to anonymous function.