Also track last frame.

Signed-off-by: Jean-Yves Tinevez <jeanyves.tinevez@gmail.com>