Added phase flipping to downsample