Fixed issue with missing anonymous function.