Changed from spinlock to que lock