Phasing connected components