Added gctx write support.