Added doublePeak code