Updated table manipulation functions