Added convertField function to ease the generation of new fields