Add a framerate counter.
Add some error checkups.
Update data.