Too many ifs removed.