Upon stipulation of the parties, the court shall defer for a reasonable time any pending proceedings in the prosecution so that the procedures under §§ 40-15-102 – 40-15-105 may be pursued.