Added resync every 10 frames