Added xyn field to the function output so that the raw data that were used for fitting can be obtained