Rename localThread to local.