Fix _data buffer
Add statistics and nextFrame