Changed redundant Ifs to Else Ifs