Make update_flash function global