Allow specifying the transfer size

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>