Appeal from Circuit Court of Adams County No. 95CF100 Honorable Dennis K. Cashman, Judge Presiding.
 The opinion of the court was delivered by: Justice Steigmann
 In July 1996, pursuant to a plea agreement, defendant, Russell G. Davis, pleaded guilty to three counts of unlawful use of weapons (UUW) (720 ILCS 5/24-1(a)(4) (West 1996)). As the parties agreed, the trial court (1) sentenced defendant to concurrent terms of 3 years in prison on each count and (2) ordered those sentences to run consecutively to a 10-year federal sentence he was already serving.
 In October 2002, defendant filed a pro se motion to modify his sentence, asserting that under section 5-8-1(e) of the Unified Code of Corrections (Unified Code) (730 ILCS 5/5-8-1(e) (West 2002)), the trial court possessed discretion to (1) reconsider its order directing that his Illinois sentence be served consecutively to his federal sentence and (2) order, instead, that his sentences be served concurrently. In November 2002, the court denied defendant's motion, upon determining that it lacked subject-matter jurisdiction.
 Defendant appeals, and we affirm.
 Defendant's October 2002 motion, entitled "nunc pro tunc motion for modification of sentence," asserted that in January 1995, he was arrested on the three UUW counts and released on a recognizance bond that same day. In February 1995, the federal government charged him with two felonies. Defendant pleaded guilty to the federal charges, and in January 1996, he was sentenced to 10 years in federal prison.
 In July 1996, defendant appeared in the trial court and pleaded guilty to the three pending UUW counts, pursuant to an agreement that he serve 3 years in prison on each count, with those sentences to run concurrently to each other and consecutively to his 10-year federal sentence. The court accepted defendant's guilty plea and sentenced him in accordance with the parties' agreement.
 Defendant did not file a posttrial motion regarding his guilty plea or sentence, nor did he pursue an appeal. However, in October 2002, defendant filed the pro se motion for modification of sentence that is the subject of this appeal. In that motion, defendant acknowledged that he had pleaded guilty six years earlier but claimed that the trial court retained jurisdiction to consider his motion under section 5-8-1(e) of the Unified Code. In November 2002, the court denied defendant's motion for lack of subject-matter jurisdiction. This appeal followed.
 II. DEFENDANT'S CLAIM THAT THE TRIAL COURT ERRED BY DENYING HIS MOTION TO MODIFY HIS SENTENCE
 Defendant argues that the trial court erred by denying his motion to modify his sentence on the ground that it lacked subject-matter jurisdiction. Specifically, he contends that section 5-8-1(e) of the Unified Code (730 ILCS 5/5-8-1(e) (West 2002)) "appears to give jurisdiction to the trial court to enter a modification of state sentence at any time during the period in which the defendant is serving his federal or other state sentence." We disagree.
 Section 5-8-1(e) of the Unified Code reads as follows:
 "A defendant who has a previous and unexpired sentence of imprisonment imposed by another state or by any district court of the United States and who, after sentence for a crime in Illinois, must return to serve the unexpired prior sentence may have his sentence by the Illinois court ordered to be concurrent with the prior sentence in the other state. The court may order that any time served on the unexpired portion of the sentence in the other state, prior to his return to Illinois, shall be credited on his Illinois sentence. The other state shall be furnished with a copy of the order imposing sentence which shall provide that, when the offender is released from confinement of the other state, whether by parole or by termination of sentence, the offender shall be transferred by the [s]heriff of the committing county to the Illinois Department of Corrections. The court shall cause the Department of Corrections to be notified of such sentence at the time of commitment and to be provided with copies of all records regarding the sentence." 730 ILCS 5/5-8-1(e) (West 2002).
 Contrary to defendant's contention, we conclude that this section provides an Illinois trial court, at the time of sentencing, with discretion to direct that some or all of the prison sentence it is imposing upon a defendant be served concurrently with a prior sentence imposed against the defendant by another state or federal district court. Nothing in section 5-8-1(e) indicates that the legislature intended to authorize trial courts, many years after a sentence was imposed, to revisit the issue of whether the Illinois sentence should be concurrent, rather than consecutive, to the previously imposed sentence.
 The interpretation defendant suggests would be both extraordinary and inconsistent with Illinois law, which favors finality in judicial proceedings. Indeed, a trial court normally loses subject-matter jurisdiction 30 days after a sentence is imposed. People v. Flowers, 208 Ill. 2d 291, 303, 802 N.E.2d 1174, 1181 (2003). Were we to accept defendant's interpretation of section 5-8-1(e), no time limit would exist beyond which a trial court could not revisit the imposition of concurrent or consecutive sentencing. In this case, defendant presented his motion to modify his sentence ...