Tweak frame counting