Adding table lock