Added ability for peak fitting and functions to return their data.