Having pleaded guilty last month to conspiring to provide material support to terrorists, Mohammed Khalid was before a federal judge Monday with a motion to be released from detention in order to enter a state-run juvenile facility in Loysville, Pa.

The gist of his lawyer’s argument: Incarcerating Khalid with adults in a federal facility would increase the chances of him being further radicalized.