Update Flash Logic