Add flag param in the new flash api.