Simplified integer parsing.