Added struct support: writedeck method