Changed elif to if