An appeals court in Washington is hearing the case of a once-prominent Orthodox rabbi who spent years secretly videotaping women undressing and using a changing room at a Jewish ritual bath.

A lawyer for Rabbi Bernard Freundel is expected to argue in court Tuesday that his client's approximately 6 ½ year sentence is illegal and should have been limited to a year in prison.

Freundel was arrested in 2014 after one of his recording devices was discovered at the National Capital Mikvah in Washington.

Prosecutors found he filmed some 150 women using recording devices hidden in a clock radio, a fan and a tissue box holder. He ultimately took a plea deal in the case and acknowledged that from 2009 to 2014 he secretly recorded women at the mikvah.