Improving size validations
Merge pull request #1 from ballesterosam/fix-size-calculation

Improving size validations