Added support for the calling of methods in the worker scope.