Added else if conditional and changed above alert.