NEW YORK, NY - DECEMBER 11: Movie producer Harvey Weinstein arrives at criminal court on December 11, 2019 in New York City. Weinstein returned to court for a ruling on whether he will remain free on bail or if his bail will be raised to $5 million before his trial starts January 6 . (Photo by David Dee Delgado/Getty Images)
PHOTO: David Dee Delgado/Getty Images
NEW YORK, NY - DECEMBER 11: Movie producer Harvey Weinstein arrives at criminal court on December 11, 2019 in New York City. Weinstein returned to court for a ruling on whether he will remain free on bail or if his bail will be raised to $5 million before his trial starts January 6 . (Photo by David Dee Delgado/Getty Images)
Now playing
01:10
Weinstein empire unravels amid scandal (2017)
Biden 03062021
PHOTO: CNN
Biden 03062021
Now playing
02:28
'Help is on the way': Biden speaks after Senate passes relief plan
Sen. Lisa Murkowski (R-AK) asks a question at a hearing of the Senate Health, Education, Labor and Pensions Committee on September 23, 2020 in Washington, DC.
PHOTO: Alex Edelman/Pool/Getty Images
Sen. Lisa Murkowski (R-AK) asks a question at a hearing of the Senate Health, Education, Labor and Pensions Committee on September 23, 2020 in Washington, DC.
Now playing
01:40
Trump plans to campaign against Sen. Murkowski in 2022
01 senate stimulus bill 210306
PHOTO: Senate TV
01 senate stimulus bill 210306
Now playing
01:47
Senate passes Biden's $1.9 trillion Covid-19 relief bill
Pope Francis meets with Iraq's leading Shiite cleric, Grand Ayatollah Ali al-Sistani in Najaf, Iraq, Saturday, March 6, 2021. The closed-door meeting was expected to touch on issues plaguing Iraq's Christian minority. Al-Sistani is a deeply revered figure in Shiite-majority Iraq and and his opinions on religious matters are sought by Shiites worldwide.
PHOTO: Vatican Media/AP
Pope Francis meets with Iraq's leading Shiite cleric, Grand Ayatollah Ali al-Sistani in Najaf, Iraq, Saturday, March 6, 2021. The closed-door meeting was expected to touch on issues plaguing Iraq's Christian minority. Al-Sistani is a deeply revered figure in Shiite-majority Iraq and and his opinions on religious matters are sought by Shiites worldwide.
Now playing
01:42
Pope Francis holds historic meeting with revered Shia cleric
WASHINGTON, DC - MARCH 05: Sen. John Cornyn (R) (R-TX) talks with Sen. Joe Manchin (D-WV) while walking to the U.S. Senate chamber for a vote March 05, 2021 in Washington, DC. The Senate continues to debate the latest COVID-19 relief bill.  (Photo by Win McNamee/Getty Images)
PHOTO: Win McNamee/Getty Images
WASHINGTON, DC - MARCH 05: Sen. John Cornyn (R) (R-TX) talks with Sen. Joe Manchin (D-WV) while walking to the U.S. Senate chamber for a vote March 05, 2021 in Washington, DC. The Senate continues to debate the latest COVID-19 relief bill. (Photo by Win McNamee/Getty Images)
Now playing
02:54
Axelrod breaks down Manchin's surprising move
sinema
PHOTO: CNN
sinema
Now playing
01:50
Senator's move has many on the internet outraged
PHOTO: FBI
Now playing
02:58
Trump State Department official charged in Capitol riot
John King Magic Wall 0305
PHOTO: CNN
John King Magic Wall 0305
Now playing
02:17
President Biden sending a team to the US-Mexico border
PHOTO: CNN
Now playing
02:53
Here's how Canadian schools have stayed open
This image was taken during the first drive of NASA's Perseverance rover on Mars on March 4, 2021. The team has spent the weeks since landing checking out the rover to prepare for surface operations.
PHOTO: JPL-Caltech/NASA
This image was taken during the first drive of NASA's Perseverance rover on Mars on March 4, 2021. The team has spent the weeks since landing checking out the rover to prepare for surface operations.
Now playing
02:17
NASA releases stunning new images from Mars
Rep john garamendi 0305
PHOTO: CNN
Rep john garamendi 0305
Now playing
02:33
Rep. Garamendi: Any lawmaker involved in Capitol riots ought to be thrown out of Congress
A view of Capitol Hill during heightened security concerns over possible protests or violence tomorrow March 3, 2021, in Washington, DC. - Washington's security posture has been bolstered after threats of a possible March 4, 2021, "breach" of the US Capitol, with the House of Representatives changing its voting plans to avoid gathering members on a day of potential unrest. (Photo by Brendan Smialowski / AFP) (Photo by BRENDAN SMIALOWSKI/AFP via Getty Images)
PHOTO: Brendan Smialowski/AFP/Getty Images
A view of Capitol Hill during heightened security concerns over possible protests or violence tomorrow March 3, 2021, in Washington, DC. - Washington's security posture has been bolstered after threats of a possible March 4, 2021, "breach" of the US Capitol, with the House of Representatives changing its voting plans to avoid gathering members on a day of potential unrest. (Photo by Brendan Smialowski / AFP) (Photo by BRENDAN SMIALOWSKI/AFP via Getty Images)
Now playing
03:18
Rep. Sarbanes: Failure to pass HR 1 'would split our democracy in two'
Senior Advisor to the President Jared Kushner  attends a press conference on September 4, 2020, in the Brady Briefing Room of the White House in Washington, DC. (Photo by Brendan Smialowski / AFP) (Photo by BRENDAN SMIALOWSKI/AFP via Getty Images)
PHOTO: BRENDAN SMIALOWSKI/AFP/AFP via Getty Images
Senior Advisor to the President Jared Kushner attends a press conference on September 4, 2020, in the Brady Briefing Room of the White House in Washington, DC. (Photo by Brendan Smialowski / AFP) (Photo by BRENDAN SMIALOWSKI/AFP via Getty Images)
Now playing
02:50
Jared Kushner disappears from Trump's inner circle
PHOTO: CBS Evening News with Norah O'Donnell
Now playing
02:14
Governor Cuomo accuser Charlotte Bennett speaks out
In this Dec. 1, 2020 file photo, Chairman of the Federal Reserve Jerome Powell appears before the Senate Banking Committee on Capitol Hill in Washington.  Powell told Congress on Wednesday, Feb. 24, 2021,  that the central bank will not begin raising interest rates until the Fed believes it has reached its goals on maximum employment  and warned that many people in the hardest hit industries will likely need to find different jobs.  (AP Photo/Susan Walsh, Pool, File)
PHOTO: Susan Walsh/AP
In this Dec. 1, 2020 file photo, Chairman of the Federal Reserve Jerome Powell appears before the Senate Banking Committee on Capitol Hill in Washington. Powell told Congress on Wednesday, Feb. 24, 2021, that the central bank will not begin raising interest rates until the Fed believes it has reached its goals on maximum employment and warned that many people in the hardest hit industries will likely need to find different jobs. (AP Photo/Susan Walsh, Pool, File)
Now playing
02:18
Jerome Powell: US economy 'some time' away from full recovery
A customer wears a face mask while shopping for flowers displayed for sale from a wholesale merchant ahead of the Valentine's Day holiday at the Southern California Flower Market on February 12, 2021 in Los Angeles, California. - While some florists note an increased demand for socially distant gifts, the Covid-19 pandemic has impacted global supply chains and shut down most large events including weddings where flowers are popular. The Valentine's Day and Mother's Day holidays are historically the two busiest days of the year for floral businesses. (Photo by Patrick T. FALLON / AFP) (Photo by PATRICK T. FALLON/AFP via Getty Images)
PHOTO: Patrick T. Fallon/AFP
A customer wears a face mask while shopping for flowers displayed for sale from a wholesale merchant ahead of the Valentine's Day holiday at the Southern California Flower Market on February 12, 2021 in Los Angeles, California. - While some florists note an increased demand for socially distant gifts, the Covid-19 pandemic has impacted global supply chains and shut down most large events including weddings where flowers are popular. The Valentine's Day and Mother's Day holidays are historically the two busiest days of the year for floral businesses. (Photo by Patrick T. FALLON / AFP) (Photo by PATRICK T. FALLON/AFP via Getty Images)
Now playing
02:39
States rolling back Covid-19 safety measures as cases continue to rise
(CNN) —  

Harvey Weinstein arrived to a court hearing in Manhattan using a walker on Wednesday, an apparent sign of the disgraced movie producer’s deteriorating health.

Weinstein, whose sexual assault trial is set to start next month, is scheduled to undergo back surgery on Thursday to relieve back pain, his attorney Donna Rotunno said in court. After the court hearing, she said the legal team insisted he use a walker.

“We wanted him to use a walker last week and Mr. Weinstein didn’t want the press to think he was seeking sympathy. He is in pain, he’s having surgery, and we will be back in court on January 6 for trial,” she said.

Last week, Rotunno said the public scrutiny on him had taken a toll on his health.

Movie producer Harvey Weinstein arrives at criminal court on Wednesday in New York City.
PHOTO: David Dee Delgado/Getty Images
Movie producer Harvey Weinstein arrives at criminal court on Wednesday in New York City.

“This is tough on anybody going through this and dealing with the scrutiny, not only in the court room but the court of public opinion, and this has been hard on him,” she said. “He has some back issues that we’re hoping to address this week, and that’s where his health stands. You can tell, it’s tough on him.”

Wednesday’s court hearing dealt with Weinstein’s bail conditions in light of new bail reforms set to take effect in 2020.

Judge James Burke offered Weinstein three options for bail: $5 million cash bail, a $50 million security bond partially secured at 10%, or a $2 million insurance company bond, each with a 72-hour surety.

Outside court, Weinstein’s attorney Donna Rotunno said Weinstein would take the $2 million insurance company bond, which would be secured with his original $1 million cash bail plus additional assets.

Weinstein must continue to surrender his passport and not apply for a new one, not travel outside the country and notify USAA when he leaves New York or Connecticut, Judge Burke ruled. The judge called the measures the “least restrictive conditions” that would guarantee Weinstein’s return to court of his trial starting January 6.

The judge said that should Weinstein have any further medical issues, the court would “not be terribly understanding.” He asked Weinstein if he understood that if he failed to appear, a warrant would be issued for his arrest.

“I have every intention of being here,” he said, adding that “this is a good thing.” Burke followed up and asked Weinstein to give a yes or no answer, and Weinstein said “yes”.

Manhattan Assistant District Attorney Joan Illuzzi told the court that Weinstein violated his bail conditions by mishandling his ankle monitoring system at times. She said there were 57 violations of Weinstein’s ankle monitor in under two months.

“The people’s position is none of the bracelet violations were accidental,” Illuzi said.

She was “shocked” to find out they were not reported at the time and argued that they were attempts from Weinstein’s to conceal his whereabouts. Illuzzi told the judge that the glitches only stopped once there was a threat of change of bail.

Weinstein’s defense attorney Arthur Aidala said the violations were technical glitches that have to do with lack of reception in the Westchester area where Weinstein resides.

CNN’s Elizabeth Joseph contributed to this report.