New wrap/unwrap function in table.pl