Passed in field_id_prefix, type and array name to update fields
Removed unnecessary files from var