Added 'writeWrapped' function