Use global variables in script if there is no client.