Change  multiple If statements into elifs and remove unnecessary items