Adding check for sum of columns