Update flash script