Add table functionality