Flushes output