Added locals support.