Removed modifyContext helper function and made the shell watch for changes to the context object instead.
4.0.6