Table locking -> O(n)