Comparators fixed for gradient. Test is needed.