Create anonymous functions in an execution context with limited scope