Replaced Event() to flag