Better flash script