Added support to autodetect read length and the number of reads sampled