Implemented repeat_min and repeat_max in fields