added syncronized bug. added Framerate parameter