Random Changes

Changed the function for add table to work better