Use local() in pls so the environment is explicit.