Adding in support for dual writes

Adding in support for dual writes