Working resizer and validator. Need to improve estimate.