Made CueEvents execute properly