Add support for rational numbers