¶ 1 On a petition for special action, the state asserts the Lake Havasu Consolidated Court (municipal court) erred in dismissing this driving under the influence (DUI) action against John Duncan Graham (defendant) and the Mohave County Superior Court erred in affirming dismissal. For the following reasons, we accept jurisdiction and grant the state relief.
¶2 The underlying facts are stipulated.1 At or around 3:25 a.m. on July 20, 2008, defendant was arrested by an officer of the Lake Havasu City Police Department for violating Arizona Revised Statute (A.R.S.) § 28-1381(A)(l) (2001) for DUI. At the police station, when police attempted to administer a breath test, defendant invoked his right to counsel. At approximately 4:15 a.m., police allowed defendant his cell phone to contact attorney Lawrence Strauss. Defendant left a voicemail message. Eventually, police obtained a search warrant authorizing the seizure of defendant’s blood and his blood was drawn at 5:16 a.m. Sometime after 7:00 a.m., perhaps as late at 7:30 a.m., attorney Strauss called the jail and attempted to speak with defendant. Strauss was not able to speak to defendant as he was being readied for his initial appearance before the magistrate. Defendant had his initial appearance at approximately 8:00 a.m. and was released on bond.
¶ 3 Defendant filed a motion to dismiss the DUI charges alleging interference with his Sixth Amendment right to counsel when jailors did not permit him to take the call from his counsel. The municipal court dismissed the matter on the stipulated facts. The superior court affirmed on appeal. The state then filed this special action.
¶ 4 The acceptance of special action jurisdiction is appropriate to determine this issue as there is no other remedy available for the improper dismissal of these charges. State v. Superior Court, 190 Ariz. 203, 206, 945 P.2d 1334, 1336 (App.1997) (taking special action jurisdiction over the dismissal of DUI charges; Ariz. R. Spec. Act. 1(a) (special action is available when there is no other equally plain, speedy or adequate remedy by appeal)).
¶ 5 While the decision to grant a motion to dismiss is reviewed for abuse of discretion as to the facts, legal questions are reviewed de novo. State v. Hansen, 156 Ariz. 291, 294, 751 P.2d 951, 954 (1988); Zamora v. Reinstein, 185 Ariz. 272, 275, 915 P.2d 1227, 1230 (1996). Finding that both the municipal and superior courts erred in applying the law on these stipulated facts, we reverse.
*479¶ 6 Defendant asserts, citing Arizona Rule of Criminal Procedure 6.1(a)2 and a variety of Arizona eases, that he had a right to consult with his attorney if such access would not have unduly delayed the DUI investigation. Defendant claims that because jailors did not allow him to speak to his attorney when that attorney called, the jail committed a constitutional error of such magnitude that the only remedy is the dismissal of the charges against him. While cases such as State v. Holland, 147 Ariz. 453, 711 P.2d 592 (1985), Kunzler v. Pima County, 154 Ariz. 568, 744 P.2d 669 (1987), Smith v. Cada, 114 Ariz. 510, 562 P.2d 390 (App.1977) and McNutt v. Superior Court, 133 Ariz. 7, 10, 648 P.2d 122, 125 (1982) discuss the right to counsel as a Sixth Amendment right even at the investigatory stage,3 here the police indisputably met their obligations regarding the DUI suspect’s right to counsel as proscribed in those eases.4
¶ 7 Police did in fact allow defendant to contact his attorney and leave a voicemail. Following that voicemail, police collected defendant’s blood via a search warrant. The blood samples are available for defendant’s use and testing and may be potentially exculpatory. There is no question that the evidence was obtained legally or that this investigatory stage was complete well before defendant’s counsel ever attempted to return defendant’s call.
¶ 8 By the time defense counsel attempted to contact defendant sometime after 7:00 a.m., the evidence had been collected and defendant was no longer in the custody of the arresting police agency. He was in jail, in *480the sheriffs custody, being readied for his initial appearance. These factors are crucial to our analysis.
¶ 9 Under the stipulated facts presented here, defendant’s attorney contacted him after the DUI investigatory stage was complete and just prior to his initial appearance before the magistrate while he was in the control and custody of the sheriff. The initial appearance is not a critical stage in which the accused is in need of counsel, as one of the primary reasons for the initial appearance is for the accused to be advised of his right to counsel. State v. Cook, 150 Ariz. 470, 475, 724 P.2d 556, 561 (1986); see State v. Lee, 184 Ariz. 230, 234, 908 P.2d 44, 48 (App.1995) (“after arrest, defendants must be taken before a magistrate “without unnecessary dela/ for an initial appearance, at which time they will be informed of their right to counsel”).
In Arizona, an initial appearance is a proceeding at which a person is advised of his right to counsel and steps are taken toward obtaining counsel for subsequent proceedings ... Hence, no right to an attorney exists at the initial appearance on the day of the arrest.
Cook, 150 Ariz. at 475, 724 P.2d at 561.
¶ 10 Arizona Rule of Criminal Procedure 4.2 governs initial appearances and it reads in pertinent part:
a. In General. At the suspect’s initial appearance, the magistrate shall:
(3) Inform the defendant of his or her rights to counsel and to remain silent;
(5) Appoint counsel if the suspect is eligible for and requests appointed counsel under Rule 6.
Generally, the Sixth Amendment right to counsel arises only when a defendant is formally charged with a crime. Moran v. Bur-bine, 475 U.S. 412, 428-32, 106 S.Ct. 1135, 89 L.Ed.2d 410 (1986); State v. Hall, 129 Ariz. 589, 592, 633 P.2d 398, 401 (1981) (overruled on other grounds). Defendant was not automatically entitled to counsel at his initial appearance. Nor, while he was in the custody of the sheriff, was he automatically entitled to speak to his counsel as he was being readied for his initial appearance.
¶ 11 The role of the sheriff in Arizona is statutory. The sheriff not only has a statutory duty to take suspects before a magistrate for the initial appearance, he must do so without unnecessary delay. A.R.S. § 11-441(2)(2009); Ariz. R.Crim. Proc. 4.1(a). Section 11-441(A)(5) requires the sheriff to “[tjake charge of and keep the county jail ... and the prisoners in the county jail.” This statutory power confers the right upon the sheriff to manage jail facilities and to regulate jail visitation schedules, including visits by counsel. Arpaio v. Baca, 217 Ariz. 570, 578-580, ¶¶ 26-31, 177 P.3d 312, 320-322 (App.2008) (holding any ruling curtailing the sheriffs ability to regulate privileged visitation in the jails be narrowly tailored and infringe no more than necessary on the sheriffs statutory authority). Prison officials are even accorded leeway to infringe on certain constitutional rights when ensuring the safety of inmates and corrections personnel. See id. at 580, ¶ 30, 177 P.3d at 322 (citing Bell, 441 U.S. at 547, 99 S.Ct. 1861). Rule 6.1, Arizona Rules of Criminal Procedure, itself provides that a suspect is entitled to consult with counsel “as soon as feasible after a defendant is taken into custody, [and] reasonable times thereafter....” (Emphasis added).
¶ 12 The superior court’s minute entry states that defendant was denied the opportunity to speak to defense counsel “presumptively because the defendant was being prepped for his initial appearance” and affirmed dismissal in this case because the state “presented no evidence why it may have been reasonable to prevent the defendant access to counsel during initial appearance preparation time.” Defendant has offered no explanation as to how he was prejudiced by the failure to allow him to speak to his counsel nor can we discern any. See Transon, 186 Ariz. at 485-86, 924 P.2d at 489-90 (in a DUI case where a right to counsel violation was alleged “even assuming the police conduct violated appel-lee’s Article II, § 24 right to counsel, ap-pellee was not prejudiced”). Any allegation by defendant that he was prejudiced by in*481fringement of his right to counsel, had he made such an allegation, would be evaluated in light of the sheriffs institutional requisites in meeting his statutory and constitutional obligations. See Baca, 217 Ariz. at 578, ¶ 26, 177 P.3d at 320.
¶ 13 For the reasons stated above, we find no violation of defendant’s Sixth Amendment right to counsel and we reverse the superior court and reinstate the charges against defendant.
CONCURRING: PHILIP HALL, Presiding Judge and DANIEL A. BARKER, Judge.