Use getFieldNames to simplify eachField, someField.