Made EventFlags class