Martin Shkreli will be held in jail until his sentencing for securities fraud following online antics, according to reports from the Brooklyn federal courtroom.

US District Judge Kiyo Matsumoto made the call Wednesday evening after hearing arguments from federal prosecutors who claimed Shkreli posed a "danger to the community." Prosecutors cited Shkreli’s recent online antics as reasons to lock up the infamous ex-pharmaceutical CEO. While he has a history of harassing women online , prosecutors were particularly critical of a September 4 Facebook post in which he offered his followers a $5,000 reward for plucking a strand of Hillary Clinton’s hair during her current book tour. He reportedly made a reference to using the strands for genetic testing in the post, which has since been deleted.

The post also prompted the Secret Service to interview Shkreli.

In a letter to Matsumoto last week, prosecutors argued that “Shkreli has engaged in an escalating pattern of threats and harassment." He has been out on $5 million bail following his 2015 indictment of securities and wire fraud charges.

Late Tuesday, Shkreli submitted a written apology to Matsumoto regarding the Clinton stunt. He emphasized that he "never intended to cause alarm or promote any act of violence whatsoever." He referred to the post as an "awkward attempt at humor or satire."

Nevertheless, Matsumoto sided with prosecutors this evening, reportedly calling the Clinton stunt a “solicitation of assault.”

Shkreli awaits sentencing following convictions on three counts of securities fraud in connection to a Ponzi-like scheme in which he defrauded investors of two hedge funds he managed. He faces up to 20 years in prison, although legal experts expect he’ll serve much less.

Shkreli said after the convictions last month that he plans to appeal.

According to a reporter with the New York Post, Shkreli has been moved to an undisclosed location where he’ll await his sentencing on January 18.