Re-implemented number parsing.