Added new ability to do peak detection and accumulation