Allow passing a table into map