Use `setlocal` instead of `set`