Adding spinlock guards.