Replaced ifelses and removed ESS from MISS