Adding a new method to SerialStream: flush(void).