Sir Alex Ferguson has agreed a new four-year contract to remain as Manchester United manager.

The United manager will sign a deal to stay in the job until 2007, taking him through to the standard retirement age of 65, when he is expected to step down.

There were question marks over Feguson’s ability to continue managing in the wake of last week’s heart scare, but Ferguson insisted never any question of him standing down.

“I have spoken to David Gill and he understands the situation,’ confirmed Ferguson. ‘This will not affect my future here or the contract.”

“We have agreed the details and I think it is basically straightforward. It wasn’t going to be signed (Saturday) night but we are ready.”

Ferguson had hospital treatment to correct an irregular heartbeat on Thursday, but the Scot said he had planned the visit for over two months.

Ferguson, the most successful manager in the club’s history, has been in charge at Old Trafford since 1986.