Added support for fractional input.