Add a helper method to generate dynamic field names
Use helper method to generate dynamic field for attribute indexing