Added option for fragment size. Fixes #7