Fix bug with the size counting.
Add some explanations.