Add support for :local selector