Adding Shotdetect formula