Changed some ifs to elifs