Added Flash function