Added print during peak detection