Add more comments.
Remove unnecessary stuff.
Detect data version differences better.