Set generation flag