Added write statements to correlator