Added important feature to frames
The function now calculates which syllable should be highlighted now.