Bill Self won’t be leaving Kansas.

Kansas has announced that it has agreed to a lifetime contract with the head men’s basketball coach. The school released a statement on the new deal on Friday.

Self’s contract had less than one year remaining on it, so Kansas replaced it with a new five-year rolling agreement that will automatically add one year to the deal at the conclusion of each season. That will last through the remainder of the head coach’s career.

“I want to extend my sincere appreciation to Chancellor [Doug] Girod, Kurt Watson, and the rest of the leadership at KU for their belief and faith in me to provide this lifetime contract,” Self said in a statement. “Every day, I am reminded just how fortunate I am to lead this storied program and there truly is no place else I would rather be. As we continue to work through the challenges facing our program, we look forward to moving ahead and focusing on our bright future. I would also like to express my gratitude to our alumni and donors, as well as the best fans and students in the nation, that have supported my family and me for the past 18 seasons. I’m excited to remain your basketball coach and compete for many championships in the future.”

Self has been the head coach at Kansas since 2003. He’s compiled a 522-118 record with the Jayhawks, winning 15 Big 12 regular season titles and 8 Big 12 Tournament championships. Kansas has played in 3 Final Fours under Self and won a national title in 2008.

Kansas has won 20 games or more every season under Self and has never missed the NCAA Tournament.

Prior to taking the job at Kansas, Self had stops at Oral Roberts, Tulsa and Illinois. His overall coaching record is 729-223.