You can use unpack to unpack a table into a tuple, which allows you to return multiple values from a function easily from a table.