Added table locks