Added direct access to the context from scripts. More documentation.