Change ifs to elifs

Should make things a tiny bit more efficient