Update flex semantics