Adding the field mapping function