Add wrapping anonymous function.