MIAMI (AP) — A 16-year-old charged with sexually assaulting and killing his 18-year-old stepsister aboard a Carnival Cruise ship surrendered to federal custody Monday after a judge reversed his earlier decision allowing pretrial release.

Timothy Hudson is now in custody, the U.S. Attorney’s Office in Miami confirmed. U.S. Magistrate Judge Edwin Torres filed an order revoking Hudson’s pretrial release last Wednesday, but the order was sealed until Monday afternoon. The order directed Hudson to surrender to U.S. Marshals at the federal courthouse in Tampa on Monday morning.

Judge Torres had ruled in February that Hudson, then 16, could live with an uncle and be monitored electronically while the case was in juvenile court. However, after the case was transferred to adult court in April, prosecutors argued that Hudson should be detained, and the judge ultimately agreed that Hudson’s pretrial detention should be treated as if he were an adult.

Under the order, Hudson will be held in an approved juvenile facility, not an adult detention center. The case is scheduled for trial in Miami in June. Hudson has previously entered a not-guilty plea.