Added the ability to handle lightcurves with multiple data columns