Size now correctly decided.
Corrected error in number of blocks.