Locals are added and removed appropriately