Refined frameCounter