Small refactoring;
Added spinlock implementation;
Updated.