Apple Inc.’s former senior securities lawyer has been charged with insider trading, the Securities and Exchange Commission announced Wednesday.

The Cupertino, California-based company’s former global head of corporate law and corporate secretary Gene Levoff allegedly traded Apple securities based on confidential information he received as part of an executive committee that reviews draft earnings materials. In 2015 and 2016, the SEC claims Levoff made around $382,000 in combined gains and avoided losses by trading Apple securities ahead of three quarterly earnings.