Added arbitrarily large nesting and trusted connection input for context