Isolate frame-counting as a function in header.
Merge branch 'release/v1.01.0'