Apple CEO Tim Cook will retire on Friday, his company announced.

Cook, who took over from Steve Jobs as Apple’s CEO in September 2013, will remain at the company for the rest of his life.

The announcement came a day after the company said it would pay $1.4 billion to settle a class action lawsuit by disgruntled former employees.

Cook will be succeeded by Steve Wozniak, who is scheduled to retire at the end of April.

Apple has been struggling for years to regain the trust of investors, many of whom were not on board with the company’s $400 billion takeover of Beats Electronics.