Common interface used by the worker process implementation and script engines.