Checking if stdout buffering could be causing the timeouts.