Table manipulations and selection

Same as above.