Thanks @Dalla, frameSync did the job for me.