This function is `store_or_execute`, but we only need to set the flag in the execute branch, just before it calls `run_cell()`. Also, don't forget to set the flag back to `False` afterwards.