Added while and elif.