Added option to set selected fields in table