Added option to specify the number of dimensions to read.

Extended interfaces. Added a hack to ignore other dims.