Prime Minister Modi took an oath of allegiance to the nation.