Improved upon pop_table(). Still not working.