Table manipulations and selection

Meh. This isn't the time to fix this.