Appellant Solis was convicted on three counts of heroin delivery to a paid police informant. He appeals his conviction claiming improper, prejudicial uncharged misconduct evidence was admitted requiring a reversal.
We affirm.
ISSUES
Solis presents this issue for our review:
Whether the trial court erred in admitting extensive testimony by an informant about alleged prior drug transactions between the informant and Mr. Solis which were *29unconnected and irrelevant to the three distinct instances of charged conduct?
The State rephrases this issue:
Did the district court err in admitting evidence of appellant’s prior relationship with witness Deborah Campos, including her prior purchases of heroin from appellant?
FACTS
Deborah Campos, a heroin addict for more than thirteen years, suffered an overdose in August of 1996. Shortly after that, she began calling the Cheyenne Police Department’s silent witness program and reporting that Solis was a heroin dealer. Eventually, she identified herself to police, agreed to act as an informant for the police department, and to purchase heroin from Solis while wearing a recording device. Police had Campos buy heroin on August 28, 29, and 30, 1996. She was paid $220 by police for making these purchases. Before she made the purchases, police searched her person and her car and tape-recorded the telephone calls to Solis arranging the purchases. The purchases were tape recorded and either video recorded or photographed as police surv-eilled; however, police officers testified that they were unable to see Campos hand Solis the buy money and were unable to see exactly what Solis placed in Campos’ hand. After each buy, Campos rejoined police and produced tiny packets containing heroin.
Solis was arrested for three counts of delivery of heroin to Campos. Before trial, the State notified the defense that it intended to use evidence of prior drug transactions between the defendant and the informant during the period of February, 1996, through August 30, 1996, to show a course of conduct and for identification purposes. The defense objected to admission of this evidence, contending that it was hearsay, and that identity was not at issue. A pretrial hearing was held, and the State requested admission of these uncharged crimes to explain to the jury why Campos had targeted Solis, expressing a concern that the jury would be mystified and wonder about the reason. The district court delayed ruling until hearing Campos’ testimony out of the hearing of the jury. After hearing about Campos’ and Solis’ long relationship in heroin dealing, the district court admitted the evidence for the purpose of establishing “the history of the relationship between this witness and the defendant, a course of dealing between the two,” and “a context” for the charged conduct.
The defense’s theory of the case established during opening statement, cross-examination of Campos, and Solis’ testimony maintained that packets of heroin are very small and easily hidden in hair, a bra, on various parts of a body, in underwear or in shoes, and the jury was going to have only Campos’ word that Solis had delivered heroin; there was no corroborating evidence. Campos testified that it was heroin. Solis testified that he did not deliver heroin, and had in fact delivered codeine pills to Campos, a longtime friend, to help her withdraw from her heroin addiction. The defense theory also asserted that Campos’ motivation for informing was to collect money from the police to support her heroin addiction.
The jury was instructed that the uncharged misconduct could only be considered for the limited purpose of showing a history of the relationship between Solis and Campos and a course of conduct. It returned a jury verdict of guilty on all counts, and this appeal followed.
DISCUSSION
During presentation of the State’s case-in-chief, Campos testified that Solis had been supplying her with heroin for several months in 1996. After her overdose, Campos turned in her supplier to police by calling the silent witness program. The State contends that this course of conduct testimony was essential to explain to the jury why Campos was motivated to single out Solis and become an informant. Solis contends that the testimony was not relevant to any contested issue and its primary purpose was to show bad character, a purpose prohibited under W.R.E. 404(b).
Rule 404. Character evidence not admissible to prove conduct; exceptions; other Crimes.
(a) Character evidence generally.— Evidence of a person’s character or a trait of *30his character is not admissible for the purpose of proving that he acted in conformity therewith on a particular occasion, except:
(1) Character of Accused. — Evidence of a pertinent trait of his character offered by an accused, or by the prosecution to rebut the same;
(2) Character of Victim. — Evidence of a pertinent trait of character of the victim of the crime offered by an accused, or by the prosecution to rebut the same, or evidence of a character trait of peacefulness of the victim offered by the prosecution in a homicide case to rebut evidence that the victim was the first aggressor;
(3) Character of Witness. — Evidence of the character of a witness, as provided in Rules 607, 608, and 609.
(b) Other crimes, wrongs, or acts. — Evidence of other crimes, wrongs, or acts is not admissible to prove the character of a person in order to show that he acted in conformity therewith. It may, however, be admissible for other purposes, such as proof of motive, opportunity, intent, preparation, plan, knowledge, identity, or absence of mistake or accident.
Rule 404 “prohibits character evidence for the purpose of showing that the defendant acted in conformity with his ‘bad character,’ but permits the use of such evidence for other purposes.” Brown v. State, 953 P.2d 1170, 1175 (Wyo.1998). “The key inquiry is whether the act tends to prove something other than propensity to commit the charged crime and, if so, whether relevancy outweighs the risk of prejudice.” Id. at 1175-76. A ruling on the admissibility of uncharged misconduct evidence is within the sound discretion of the trial court and entitled to considerable deference on appeal. Id. at 1175. The specific test to determine if Rule 404(b) evidence is admissible is whether it is relevant evidence offered for a proper purpose; its probative value is not substantially outweighed by its potential for unfair prejudice; and a limiting instruction is given when requested. Vigil v. State, 926 P.2d 351, 357 (Wyo.1996) (citing Huddleston v. United States, 485 U.S. 681, 691-92, 108 S.Ct. 1496, 1502, 99 L.Ed.2d 771 (1988)).
Solis’ precise contention is that Crozier v. State, 723 P.2d 42, 50 (Wyo.1986), requires that we limit the course of conduct purpose to those occasions where the other crimes’ evidence is part of the same sequence of events that constitute the crimes for which the defendant is on trial. Some jurisdictions refer to this evidence as falling under the “same transaction” rule. Crozier, 723 P.2d at 49-50. Narrowing the scope of the course of conduct exception to evidence of other acts only when a part of the same transaction is an arbitrary limitation unwarranted by the plain language of Rule 404(b) specifically permitting other acts evidence when “admissible for other purposes.”
Other than hearsay rulings, Rule 404(b) rulings represent the most difficult eviden-tiary decisions required of the judiciary. Careful, reasoned judgment is essential, because it is simply undeniable that the impact of criminal activity evidence upon juries is powerful. It is for this reason that good prosecutors will always suggest a reason for admitting it, and a zealous defense will vigorously oppose admission. Against this backdrop, the role of the court is to be mindful of the dangers of admitting other acts evidence, skeptical of its necessity, but willing to admit the evidence when it is offered for a proper purpose that is material to the case at hand and is not unduly prejudicial. The rules of evidence require admitting logically relevant evidence when appropriate. Only by engaging in careful, sophisticated analysis and eschewing bright-line rules will the court distinguish between the evidence offered only to show propensity, serving no legitimate purpose and permitting a conviction without sufficient evidence of guilt, and evidence offered to fairly present a complete story and provide juries with sufficient evidence about disputed, material facts to allow a reasoned judgment.
Before trial, the prosecutor requested admission of these uncharged crimes to show why Campos had targeted Solis, expressing a concern that the jury would be mystified as to why Solis was targeted. The district court delayed ruling until hearing Campos’ testimony out of tho hearing of the jury. After hearing about Campos’ and Solis’ long rela*31tionship in heroin dealing, the district court admitted the evidence for the purpose of establishing “the history of the relationship between this witness and the defendant, a course of dealing between the two,” and “a context” for the charged conduct. Solis focuses on this initial admission and contends that it is improper character evidence.
At the time of the trial court’s ruling, however, our decisions allowed admitting uncharged misconduct and other acts evidence to show a course of conduct in order to give the jury a complete story when it is relevant and necessary to tell the complete story for the jury’s understanding. Crozier, 723 P.2d at 50. We have also approved the admission of such evidence when necessary to understand the context of the crime charged. Longfellow v. State, 803 P.2d 848, 854 (Wyo.1990) (citing Scadden v. State, 732 P.2d 1036, 1044 (Wyo.1987)). Our recent decision in Brown admitted testimony, under the course of conduct purpose, to explain a relationship that was difficult to understand. Brown, 953 P.2d at 1177. In other narcotics cases, we have admitted prior drug transactions to explain why the defendant was targeted; to enhance the natural development of the facts in the case; to explain the context of the uncharged delivery; and to explain part of the history of the event. Rodriguez v. State, 962 P.2d 141, 147 (Wyo.1998); Spencer v. State, 925 P.2d 994, 997-98 (Wyo.1996); Beintema v. State, 936 P.2d 1221, 1224 (Wyo.1997); Vigil, 926 P.2d at 358. Testimony about Campos’ and Solis’ past relationship provided context and understanding to the jury about a course of conduct that needed to be explained. The trial court did not abuse its discretion in determining these were proper purposes under Rule 404(b).
The defense theory ultimately developed at trial affirmed the correctness of the trial court’s decision. If one views this case as simply presenting the question of whether Rule 404(b) permits evidence of prior drug deliveries in a drug delivery prosecution, the answer is an unqualified no. But that is not the question that is presented by this case when one reviews the entire record.
The question is whether evidence of prior drug deliveries is admissible under another theory when the defendant admits that he participated in a drug transaction but disputes that the substance in question was heroin and when the defendant maintains that the informant lied about the nature of their drug transaction for the sole reason of receiving money from police as a paid informant. In other words, the defense is presenting a theory admitting there was a delivery, but denying there was a delivery of heroin. Additionally, the defendant’s theory requires the prosecution to prove that defendant has placed himself in the false light of innocent do-gooder. Rule 404(b) allows evidence of other crimes, wrongs, or acts for the proper purpose of establishing that it was heroin that defendant delivered to the witness and his claimed act of helpful friendship is false.
In this case, the admission of Solis’ prior drug deliveries did not create this defense strategy or place Solis in the position of having to testify. Had the State proceeded without the uncharged crime evidence, the prosecution had recordings of the telephone calls arranging the drug buys, police surveillance evidence and the heroin purchased. Faced with this evidence, the defendant could not employ a defense strategy alleging either wrong identity or that the evidence was not proof beyond a reasonable doubt. His only possible defense strategy was to offer another emanation for his conduct as observed during the drug transaction.
The exact defense theory was not established until defense counsel’s opening statement, pointing out that packets of heroin are very small and easily hidden in hair, on various parts of the body,- and in clothing, and the jury was going to have only Campos’ word that Solis had delivered heroin; there was no corroborating evidence. The opening statement pronounced Campos a liar for money. When Solis testified, he claimed that he did not deliver heroin, and in fact,had delivered codeine pills to Campos because she was a friend and he wanted to help her withdraw from her heroin addiction.
Solis’ prior drug deliveries demonstrate a course of conduct logically relevant to the disputed issues of substance identity, and Campos’ motivation for targeting Solis in a *32police investigation. Without the information, the jury would have been mystified as to why Campos chose Solis to call and arrange a drug transaction, and Solis’ version of events, as presented in opening statement, cross-examination, and when he testified in his own behalf, would not have been properly discredited.
CONCLUSION
Testimony about Campos’ and Solis’ past relationship provided context and understanding to the jury about a course of conduct that needed to be explained. The trial court did not abuse its discretion in determining these were proper purposes under Rule 404(b). We affirm the order of conviction.