Added support for parsing negative numbers