Added sync_ostream