Added latency check to _newframe