Add support for Infinity. Closes #30.