Added support for `locals`.