Added synchronization of shiftNumber.