Trial of average center for each couple of lines. Does not work