Add a method to add fields in loop