Optimize frame execution, cleanup code.
Merge pull request #593 from tobeytailor/timeline

Reduce number of executeFrame calls