Added frame sync. Fixes lag problem.