Fixed ModulatePulse class definition