Modifying logic for last attributes in column to walk the cells instead of blindly taking the last entry in the array.