Phase correction plugin