Added getPeers, Spinlock and TokenManager