Some implementation andt tests. Thread local but no locks ye