Changed conditional from elif to else