Finally working version of buildData for whole curve