The last option was for the President to take over, as provided for in the constitution. Ahmed was sworn in as the Chief Advisor of the Caretaker Government at 8.00 pm (Bangladesh standard time) on 29 October 2006 after the main political parties failed to agree on another candidate. The opposition parties resisted his appointment, because he had been elected by the majority-BNP parliament. Iajuddin Ahmed as Chief Advisor was to oversee the forthcoming elections, planned for 22 January 2007, while continuing his responsibilities as president.