Updated to always flush stderr