A New York judge on Thursday denied a motion to dismiss the five remaining criminal charges against Harvey Weinstein, saying attorneys for the disgraced movie mogul had not shown that grand jury proceedings in the case were tainted by police and prosecutor misconduct.

Manhattan Supreme Court Justice James Burke’s ruling followed a pivotal hearing Thursday morning on a motion by Weinstein’s attorney, Benjamin Brafman, to dismiss the case. Brafman had argued that prosecutors failed to present a range of exculpatory evidence to the panel, including evidence that Weinstein had engaged in a long-term consensual relationship with an alleged victim.