First attempt at writing WINDOWPAIR data layer. Untested