get_fields.c and get_fields_no.c: Add weighted fields