Modify the constructor to specify the offset range of input file