Whenever the defendant attains the ability to understand the proceedings and assist in the preparation of the defendant's defense:
shall certify that fact to the proper court, which shall enter an order directing the sheriff to return the defendant. The court shall enter such an order immediately after being sufficiently advised of the defendant's attainment of the ability to understand the proceedings and assist in the preparation of the defendant's defense. Upon the return to court of any defendant committed under section 1 of this chapter, the court shall hold the trial as if no delay or postponement had occurred.
IC 35-36-3-2