Implemented the level spin lock.