Harvey Weinstein did not “invent the casting couch in Hollywood,” his lawyer said Friday in defending him against charges he raped and sexually assaulted two women.

“My job is not to defend behavior. My job is to defend something that is criminal behavior,” the lawyer, Benjamin Brafman, told a throng of reporters outside Manhattan Criminal Court. “Mr. Weinstein did not invent the casting couch in Hollywood. To the extent that there’s bad behavior in that industry, that is not what this is about. Bad behavior is not on trial in this case.”

Brafman’s comments came moments after the 66-year-old disgraced filmmaker appeared in court on rape and criminal sex act charges involving two women in 2004 and 2013 and was released on $1 million cash bail.