Implemented SyncWrite