Removed tables function