Changed setlocal to set.