ProcessToPeak-Function added and tested