Added ability for peak fitting and functions to communicate data to the
outside world via getToolData().