Added support for integers and double parsing.