Added support for "required" field flag