Merged CaseId and FlagReason by sokra and siflweik.
Fixed up changes to CaseId and FlagReason