Reworked setTable