Allow to manually set size.

Signed-off-by: crynobone <crynobone@gmail.com>