Use flash warning instead of logger