Working for two lines! :) But it fails with three lines. Time to continue debugging