Added spin lock