Removed unnecessary else if.