Add variable passing from outer function to inner function in nested calls.