Combined if else into elif