Fox Broadcasting’s breach-of-contract counterclaim may proceed against a former executive who has sued the network for religious discrimination, but who Fox says was fired for violating the company’s sexual harassment policies.

Cliff Pozner, who worked for Fox for 22 years, the last two as the company’s executive vice president of pricing, planning and inventory management, was fired in September 2016 after numerous current and former employees came forward with sexual harassment allegations against him, Fox said according to an opinion from a Manhattan Supreme Court judge, and other papers filed in the case.