Changed name of parameter of inner function to disambiguate it.