Now accepts fractions in the input file.