Make stdout synchronous