The Supreme Court on Thursday ruled that the appointment of the Chief Election Commissioner and elections commissioners will be done by the President on the advice of a committee comprising the prime minister, the leader of the opposition in the Lok Sabha and the Chief Justice of India.