Incorrectly used elif instead of else